<?php
	class QSource_System_Controller_AclList extends Zend_Acl{
		public function __construct(){
			//Add Roles
			$this->addRole(new Zend_Acl_Role("Super Administrator"));
			$this->addRole(new Zend_Acl_Role("Moderator"));
			$this->addRole(new Zend_Acl_Role("Administrator"));
			$this->addRole(new Zend_Acl_Role("Guest"));
			//Add resources
			$this->addResource(new Zend_Acl_Resource("administrator"));
			$this->addResource(new Zend_Acl_Resource("default"));
			$this->addResource(new Zend_Acl_Resource("default:error"),"default");
			$this->addResource(new Zend_Acl_Resource("default:index"),"default");
			$this->addResource(new Zend_Acl_Resource("administrator:article"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:video"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:place"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:customer"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:product"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:productcat"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:articlecat"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:menu"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:menucat"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:index"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:user"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:login"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:block"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:contract"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:plugin"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:search"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:ajax"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:webmaster"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:configuration"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:file"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:filecat"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:webmasterrole"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:tag"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:home"),"administrator");
			$this->addResource(new Zend_Acl_Resource("administrator:feedback"),"administrator");
			//Add permissions
			$this->allow("Super Administrator",null,null);
			$this->allow("Administrator",null,null);
			$this->allow("Moderator",null,null);
			$this->deny("Moderator","administrator:article",null);
			/*
			$this->allow("Member","promotion",array("index","detail"));
			$this->allow("user","product",array("index","category","detail"));
			$this->allow("user","account",array("index","login","logout"));
			$this->allow("user","cart",null);
			$this->allow("user","search",null);
			$this->allow("moderator",array("bill","index","product","notifycation","promotion","category","cart","search"),null);
			$this->allow("moderator","account",array("login","index","logout"));
			*/
		}
	}
?>